#pragma once

#include "Tool.h"

class Player;
class GameObject;
class MagObject;

class Magnet : public Tool
{
	GameObject* attachedObject;
	MagObject* magObj;
	int ImageLR, ImageUD;
	RECT hitbox;
	tVector2D startPoint;
	tVector2D endPoint;

public:
	// Constructor
	Magnet(void);

	// Destructor
	~Magnet(void);

	void AttachObject(GameObject*);
	void ReleaseObject(void);
	void Update(float deltaTime);
	void Render( void ) const;
	void DeactivateTool( void ) override;

	GameObject* GetAttched( void ) { return attachedObject; }
	GameObject* GetMagnetObject( void ) {return (GameObject*)magObj; };
};

